/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Registered Dietician HIPAA</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S13201 (C-0-T13129-A13130-A13197-S13201-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRegisteredDieticianHIPAA()
 * @model extendedMetaData="name='RegisteredDieticianHIPAA'"
 * @generated
 */
public enum RegisteredDieticianHIPAA implements Enumerator {
	/**
	 * The '<em><b>133V00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_133V00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_133V00000N(0, "_133V00000N", "133V00000N"),

	/**
	 * The '<em><b>133VN1006N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_133VN1006N_VALUE
	 * @generated
	 * @ordered
	 */
	_133VN1006N(1, "_133VN1006N", "133VN1006N"),

	/**
	 * The '<em><b>133VN1004N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_133VN1004N_VALUE
	 * @generated
	 * @ordered
	 */
	_133VN1004N(2, "_133VN1004N", "133VN1004N"),

	/**
	 * The '<em><b>133VN1005N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_133VN1005N_VALUE
	 * @generated
	 * @ordered
	 */
	_133VN1005N(3, "_133VN1005N", "133VN1005N");

	/**
	 * The '<em><b>133V00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>133V00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_133V00000N
	 * @model literal="133V00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _133V00000N_VALUE = 0;

	/**
	 * The '<em><b>133VN1006N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>133VN1006N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_133VN1006N
	 * @model literal="133VN1006N"
	 * @generated
	 * @ordered
	 */
	public static final int _133VN1006N_VALUE = 1;

	/**
	 * The '<em><b>133VN1004N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>133VN1004N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_133VN1004N
	 * @model literal="133VN1004N"
	 * @generated
	 * @ordered
	 */
	public static final int _133VN1004N_VALUE = 2;

	/**
	 * The '<em><b>133VN1005N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>133VN1005N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_133VN1005N
	 * @model literal="133VN1005N"
	 * @generated
	 * @ordered
	 */
	public static final int _133VN1005N_VALUE = 3;

	/**
	 * An array of all the '<em><b>Registered Dietician HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RegisteredDieticianHIPAA[] VALUES_ARRAY =
		new RegisteredDieticianHIPAA[] {
			_133V00000N,
			_133VN1006N,
			_133VN1004N,
			_133VN1005N,
		};

	/**
	 * A public read-only list of all the '<em><b>Registered Dietician HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RegisteredDieticianHIPAA> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Registered Dietician HIPAA</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RegisteredDieticianHIPAA get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RegisteredDieticianHIPAA result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Registered Dietician HIPAA</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RegisteredDieticianHIPAA getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RegisteredDieticianHIPAA result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Registered Dietician HIPAA</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RegisteredDieticianHIPAA get(int value) {
		switch (value) {
			case _133V00000N_VALUE: return _133V00000N;
			case _133VN1006N_VALUE: return _133VN1006N;
			case _133VN1004N_VALUE: return _133VN1004N;
			case _133VN1005N_VALUE: return _133VN1005N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RegisteredDieticianHIPAA(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RegisteredDieticianHIPAA
